﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Master_Page/Master_IPORT.Master" CodeBehind="Payment_Report.aspx.vb" Inherits="I_PORT.Payment_Report" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript" language="javascript">
        function closeModal(type) {
           // document.getElementById('ctl00_contentplaceholder1_framePopup').src = 'about:blank';
         if(type == 'C'){
              document.getElementById('ctl00_contentplaceholder1_iframeCustomer').src = '../FormPopup/frmFollow_Payin.aspx';
            var mpu = $find('ctl00_ContentPlaceHolder1_ModalPopupExtender1');
            document.getElementById('ctl00_contentplaceholder1_btnCusLoad').click();
            mpu.hide();
            
            }
        }
        function showCus() {
            document.getElementById('ctl00_contentplaceholder1_iframeCustomer').contentWindow.location.reload(true);

        }
 </script>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
   <ContentTemplate>
   <table width="100%" border="0" cellpadding="0" cellspacing="0">
   <tr>
     <td>
        <table width="100%" border="0" cellpadding="2" cellspacing="0">
           <tr>
              <td colspan="2" style="height:5px;"><img src="../Image/space.gif" /></td>
           </tr>
           <tr>
             <td style="width:20%;" align="right"><asp:Label ID="Label2" runat="server" SkinID="lbtxt" Text="DATE :"></asp:Label>&nbsp;</td>
             <td align="left"><asp:TextBox ID="txtDate" runat="server" Width="80px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgDate" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:Label ID="Label3" runat="server" SkinID="lbtxt" Text="TO"></asp:Label>&nbsp;<asp:TextBox ID="txtDateTo" runat="server" Width="80px"  onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgDateTo" runat="server"  ImageUrl="~/Image/calendar.png" />
                 <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate" Format="dd MMM yyyy" PopupButtonID="ImgDate"></asp:CalendarExtender>
                 <asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtDateTo" Format="dd MMM yyyy" PopupButtonID="ImgDateTo" ></asp:CalendarExtender>
             </td>
           </tr>
           <tr>
             <td style="width:20%;" align="right"><asp:Label ID="Label1" runat="server" SkinID="lbtxt" Text="CUSTOMER NO. :"></asp:Label>&nbsp;</td>
             <td NOWRAP align="left" >
                 <asp:TextBox ID="txtCustomer" runat="server" Width="350px" ></asp:TextBox>&nbsp;<asp:Button id="btnSearchCustomer" runat="server" Text="ค้นหา" CssClass="ButtonStyle" />
             </td>
           </tr>
            <tr>
             <td style="width:20%;" align="right"><asp:Label ID="Label5" runat="server" SkinID="lbtxt" Text="BANK :"></asp:Label>&nbsp;</td>
             <td NOWRAP align="left" >
                 <asp:DropDownList ID="ddlBank" runat="server" SkinID="ddl">
                 </asp:DropDownList>
             </td>
           </tr>
           <tr>
             <td style="width:20%;" align="right"><asp:Label ID="Label4" runat="server" SkinID="lbtxt" Text="DOCUMENT TYPE :"></asp:Label>&nbsp;</td>
             <td NOWRAP align="left" >
                 <asp:RadioButtonList ID="radioTypePay" SkinID="raio" RepeatDirection="Horizontal" runat="server">
                   <asp:ListItem Value="0">DY</asp:ListItem>
                   <asp:ListItem Value="1">DZ</asp:ListItem>
                   <asp:ListItem Selected="True" Value="2">ALL</asp:ListItem>
                 </asp:RadioButtonList>
             </td>
           </tr>
           <tr>
             <td style="width:20%;" align="right"><asp:Label ID="Label6" runat="server" SkinID="lbtxt" Text=""></asp:Label>&nbsp;</td>
             <td NOWRAP align="left" >
                 <asp:RadioButtonList ID="radioEPay" SkinID="raio" RepeatDirection="Horizontal" runat="server">
                   <asp:ListItem Value="E">E-PAYMENT</asp:ListItem>
                   <asp:ListItem Value="M">PAY IN</asp:ListItem>
                   <asp:ListItem Selected="True" Value="2">ALL</asp:ListItem>
                 </asp:RadioButtonList>
             </td>
           </tr>
           <tr>
             <td style="width:20%;" align="right"><asp:Label ID="lbTariff" runat="server" SkinID="lbtxt" Text="Type :"></asp:Label>&nbsp;</td>
             <td align="left">
                 <asp:RadioButtonList ID="radioType"  SkinID="raio" RepeatDirection="Horizontal" runat="server">
                   <asp:ListItem Selected="True" Value="pdf">PDF</asp:ListItem>
                   <asp:ListItem Value="excel">EXCEL</asp:ListItem>
                 </asp:RadioButtonList>
             </td>
           </tr>
           <tr>
             <td style="width:20%;" align="right">&nbsp;</td>
             <td align="left">
                 <asp:Button ID="btnPrint" runat="server" Text="Print" CssClass="ButtonStyle" />
             </td>
           </tr>
           <tr>
              <td colspan="2" style="height:5px;"><img src="../Image/space.gif" /></td>
           </tr>
        </table>
     </td>
    </tr>
   </table>
         <asp:Button ID="btnCusLoad" runat="server"  Text="Button" Style="display: none" />
           <asp:Button ID="btnCustomerTemp" runat="server"  Text="Button" Style="display: none" />
                <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BackgroundCssClass="Background"
                TargetControlID="btnCustomerTemp" PopupControlID="PanelCustomer">
            </asp:ModalPopupExtender>
             <asp:Panel ID="PanelCustomer" runat="server" Style="display: none;">
                <table>
                    <tr>
                        <td>
                            <iframe runat="server" id="iframeCustomer" marginheight="0px" class="Style-Iframe" marginwidth="0px"
                                src="../FormPopup/frm_FindCustomer_Popup.aspx"></iframe>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
   </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>


